#pragma once
#include "stdint.h"
#include "stdbool.h"
#define BODY_TEMPERATURE_PATH "body_temperature"
#define wrist_TEMPERATURE_PATH "wrist_temperature"
#define BODY_TEMPERATURE_SECOND 60
#define TEMPERATURE_WEAR_DETECT_SECONDS 20

#ifdef AXILLARY_TEMPERATURE
/**
 * @brief 如果未开始,就开始,已开始,清0
 *
 */
void start_axillary_measure(void);

/**
 * @brief 如果未关闭就关闭
 *
 */
void stop_axillary_measure(void);
float get_axillary_temperature(void);
void axillary_measure_alive(void);
void axillary_temperature_process(void);
uint32_t axillary_measure_duration(void);
void axillary_measure_set_duration(uint32_t duration);
#define AXILLARY_ALIVE_SECONDS 5
#endif //#ifdef AXILLARY_TEMPERATURE

/**
 * @brief 摄氏度
 *
 * @return float NAN表示测量中
 */
float get_body_temperature(void);

/**
 * @brief 摄氏度
 *
 * @return float
 */
float get_wrist_temperature(void);
void body_temperature_store_minutes_process(void);
void body_temperature_store_clear(void);
void body_temperature_process(void);
void body_temperature_initialize(void);
int get_manual_measure_remain_second(void);
void start_manual_measure(int back_view);
void stop_manual_measure(void);
void start_rise_wrist_measure(int back_view);
